Skip to content

VirtualTimeSchedulerBase.AdvanceTo(TAbsolute) method

Defined in

Type: VirtualTimeSchedulerBase Namespace: System.Reactive.Concurrency Assembly: System.Reactive.dll

Applies to

netstandard2.0

public void AdvanceTo(TAbsolute time)

Summary: Advances the scheduler's clock to the specified time, running all work till that point.

Parameters

NameTypeDescription
timeTAbsoluteAbsolute time to advance the scheduler's clock to.

Exceptions

TypeCondition
System.ArgumentOutOfRangeExceptiontime is in the past.
System.InvalidOperationExceptionThe scheduler is already running. VirtualTimeScheduler doesn't support running nested work dispatch loops. To simulate time slippage while running work on the scheduler, use [Sleep](#